<template>
	<view class="wrap">
		<view class="box">
			<view v-if="logList.length==0">您目前等级为游客，暂无等级变动信息</view>
			<u-time-line v-else> 
				<u-time-line-item nodeTop="2" v-for="(item,index) in logList">
					<template v-slot:node>
						<view class="u-node" style="background: #20cbd4;">
							<u-icon name="level" color="#fff" :size="24"></u-icon>
						</view>
					</template>
					<template v-slot:content>
						<view>
							<view class="u-order-title">恭喜您由{{item.old_grade}}晋升为{{item.new_grade}}</view>
							<view class="u-order-desc">{{item.remark}}</view>
							<view class="u-order-time">{{item.create_time}}</view>
						</view>
					</template>
				</u-time-line-item>
			</u-time-line>	
		</view>
		<hoverMenu></hoverMenu>
	</view>
</template>

<script>
	import hoverMenu from "@/components/public/sa-hover-menu.vue";
	import {levelLog} from "@/common/api.js";
	export default {
		components: {
			hoverMenu
		},
		data() {
			return {
				logList:[]
			}
		},
		onLoad() {
			levelLog(this,{})
		},
		methods:{
			floatTouchClick(index){
				this.$uniApi.floatTouch(index);
			},
		}
	}
</script>

<style>
	page{
		font-family: PingFang SC;
		background: #f6f6f6;
	}
</style>
<style lang="scss" scoped>
	.wrap {
		padding: 24rpx 24rpx 24rpx 40rpx;
	}
	
	.u-node {
		width: 44rpx;
		height: 44rpx;
		border-radius: 100rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #d0d0d0;
	}
	.u-order-title {
		color: #333333;
		font-weight: bold;
		font-size: 32rpx;
	}
	.u-order-desc {
		color: rgb(150, 150, 150);
		font-size: 28rpx;
		margin-bottom: 6rpx;
	}
	
	.u-order-time {
		color: rgb(200, 200, 200);
		font-size: 26rpx;
	}
	
	.tel {
		color: $u-type-primary;
	}
	.box{
		margin:0 20rpx 20rpx;
		border-radius: 10rpx;
		padding: 20rpx 40rpx;
		background-color: #fff;
	}
	.empty{
		display: flex;
		align-items: center;
		justify-content: center;
		color: #909399;
		font-size: 35rpx;
	}
</style>
